//
//  HGBackUtil.m
//  HGMM
//
//  Created by 2008-bj5 on 15/8/27.
//  Copyright (c) 2015年 cc. All rights reserved.
//

#import "HGBackUtil.h"
#import "HGPluginUtil.h"
#import "HGPluginViewController.h"
#import "UIView+ViewController.h"

@implementation HGBackUtil

- (void)finish:(CDVInvokedUrlCommand*)command{
    CCLog(@"HGBackUtil - finish");
    if(command.arguments.count != 0){
        CCLog(@"无效的参数");
        return;
    }
    /*
    HGPluginViewController *vc;
    if([self.viewController isKindOfClass:[HGPluginViewController class]]){
        vc = (HGPluginViewController *)self.viewController;
        HGPluginUtil *util = [[HGPluginUtil alloc]init];
        [util clearPluginData:vc.pluginId];
    }
     */
    
    
    UIAlertController *alterVC = [UIAlertController alertControllerWithTitle:@"提示" message:@"HGBackUtil在iOS项目中无对应方法" preferredStyle:(UIAlertControllerStyleAlert)];
    [alterVC addAction:[UIAlertAction actionWithTitle:@"确定" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) {
        
    }]];
    
    [self.webView.viewContoller presentViewController:alterVC animated:YES completion:nil];
    
    
    
    
    
}

@end
